@extends('Layout/adminBase')
@section('css')
<link rel="stylesheet" type="text/css" href="{{asset('/bootstrap/css/bootstrap.min.css')}}">
<style type="text/css">
    tr{
        text-align: center;
    }
    tr th{
         text-align: center;
    }
</style>
@endsection
@section('body')
@if (session('content'))
<script type="text/javascript">
    alert("{{session('content')}}");
</script>
@endif
<div class='container'>
    <div class='head-list'>
        @action('admin/System/createLink')
        <a class="btn btn-primary" href="{{url('/admin/System/createLink')}}" >添加友情链接</a>
        @endaction
    </div>
    <table class="table table-condensed table-bordered table-striped">
        <caption>友情链接列表</caption>
        <thead>
            <tr>
                <th>序号</th>
                <th>链接标题</th>
                <th>链接地址</th>
                <th width="30%" align="center">操作</th>
            </tr>
        </thead>
        <tbody>
            @foreach ($result as $k => $v) 
                <tr>
                    <td>{{$k+1}}</td>
                    <td>{{$v->title}}</td>
                    <td>{{$v->url}}</td>
                    <td><a href="/admin/System/editLink/{{$v->id}}">修改</a>　|　<a onclick='return confirm("确定要删除此链接？")' href="/admin/System/delLink/{{$v->id}}">删除</a></td>
                </tr>
            @endforeach
        </tbody>
    </table>
    <div style="float: left;">
        
    </div>

</div>
@endsection
